
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class For extends Statement {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getForType();
	}
	
	protected Identifier variable;
	protected Expression from;
	protected Expression to;
	protected DirectionFlag dir;
	protected Statement statement;
	
	public For(Span span, Identifier variable,Expression from,DirectionFlag dir,Expression to,Statement statement) {
		super(span);
		this.variable = variable;
		this.from = from;
		this.dir = dir;
		this.to = to;
		this.statement = statement;
	}
	
	
	public Identifier getVariable() {
		return variable;
	}
	
	public void setVariable(Identifier variable) {
		this.variable = variable;
	}
	
	public Expression getFrom() {
		return from;
	}
	
	public void setFrom(Expression from) {
		this.from = from;
	}
	
	public Expression getTo() {
		return to;
	}
	
	public void setTo(Expression to) {
		this.to = to;
	}
	
	public DirectionFlag getDir() {
		return dir;
	}
	
	public void setDir(DirectionFlag dir) {
		this.dir = dir;
	}
	
	public Statement getStatement() {
		return statement;
	}
	
	public void setStatement(Statement statement) {
		this.statement = statement;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitFor(this);
	}
}
